loans-api
Get Loan Past Dues
Environment | Method | URL |
---|---|---|
Mock | GET | https://eu1.anypoint.mulesoft.com/mocking/api/v1/sources/exchange/assets/b83f053f-2270-498d-88d6-a7fa1a88abcb/loans-exp-api/1.0.45/m/loans/{id}/past-dues |
Dev | GET | NA |
Stage | GET | https://MAICTRLSTG01.nbirq.com/loans-api/v1/loans/{id}/past-dues |
Prod | GET | To Be Updated |
Description: This endpoint is used to get the loan past due details based on loanId. The loanId being passed in path parameter.
Channel sends the request to mulesoft with the path parameter "id". Mulesoft will send the request to T24 IRIS and get back the result.
A response is sent back to the channel immediately. If transaction fails due to any reason, a proper error is sent back to the API consuming channel to both REST using the error codes defined.
Mulesoft Request:
Headers:
Mandatory Headers: x-channel-id, x-correlation-id, client_id, Authorization
Optional Headers: x-sub-channel-id, x-user-id, client_secret, x-debug-flag, x-debug-flag, x-customer-id, x-bank-id
Paramaters:
URI Params: /{id}/
Query Params: NA
Content-type: application/json
Mulesoft Response:
Success Response: (200)
{
"status": {
"success": true,
"code": "200",
"reasonCode": "",
"arabicMessage": "تمت العملية بنجاØ",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"customer": {
"customerId": "1000067570"
},
"pastDueLoan": [
{
"id": "AABILL22068939DQ",
"category": "Personal Quick",
"noOfDaysDue": "147",
"displayPayDate": "20220309",
"totalAmount": "100",
"interest": "437.685",
"principalAmount": "1849.265"
},
{
"id": "AABILL22068K0J0Z",
"category": "Personal - Redu",
"noOfDaysDue": "147",
"displayPayDate": "20220309",
"totalAmount": "100",
"interest": "674.77",
"principalAmount": "8268.715"
},
{
"id": "AABILL22068RBNLW",
"category": "Personal - Redu",
"noOfDaysDue": "147",
"displayPayDate": "20220309",
"totalAmount": "100",
"interest": "0.992",
"principalAmount": "3.772"
},
{
"id": "AABILL22068YHNXW",
"category": "Personal - Redu",
"noOfDaysDue": "147",
"displayPayDate": "20220309",
"totalAmount": "100"
},
{
"id": "AABILL22172XRDP3",
"category": "Personal Quick",
"noOfDaysDue": "73",
"displayPayDate": "20220621",
"totalAmount": "100",
"interest": "60.902",
"principalAmount": "2494.65"
},
{
"id": "AABILL22271JKF54",
"category": "Personal - Redu",
"noOfDaysDue": "1",
"displayPayDate": "20221001",
"totalAmount": "133275.939",
"interest": "4999.85",
"principalAmount": "128276.089"
},
{
"id": "AABILL22271NP51P",
"category": "Personal - Redu",
"noOfDaysDue": "2",
"displayPayDate": "20220928",
"totalAmount": "60",
"interest": "60.902",
"principalAmount": "2494.65"
},
{
"id": "AABILL22271VXPGK",
"category": "Personal - Redu",
"noOfDaysDue": "2",
"displayPayDate": "20220928",
"totalAmount": "90",
"interest": "972.193",
"principalAmount": "89586.314"
},
{
"id": "AABILL22271ZYR4K",
"category": "Personal - Redu",
"noOfDaysDue": "1",
"displayPayDate": "20220930",
"totalAmount": "90558.507",
"interest": "972.193",
"principalAmount": "89586.314"
},
{
"id": "AABILL222750P1FR",
"category": "Personal - Redu",
"noOfDaysDue": "126",
"displayPayDate": "20220409",
"totalAmount": "9950",
"interest": "0.992",
"principalAmount": "3.772"
},
{
"id": "AABILL2227517H3H",
"category": "Personal Quick",
"noOfDaysDue": "104",
"displayPayDate": "20220509",
"totalAmount": "2555.552",
"interest": "100",
"principalAmount": "2455.552"
},
{
"id": "AABILL222751R4XP",
"category": "Personal - Redu",
"noOfDaysDue": "76",
"displayPayDate": "20220618",
"totalAmount": "9950",
"interest": "1.083",
"principalAmount": "3.681"
},
{
"id": "AABILL222751XFT1",
"category": "Personal - Redu",
"noOfDaysDue": "31",
"displayPayDate": "20220818",
"totalAmount": "9950",
"interest": "1.043",
"principalAmount": "3.721"
},
{
"id": "AABILL2227520Z5F",
"category": "Personal Quick",
"noOfDaysDue": "16",
"displayPayDate": "20220909",
"totalAmount": "2555.552",
"interest": "60.902",
"principalAmount": "2494.65"
},
{
"id": "AABILL222752145B",
"category": "Personal Quick",
"noOfDaysDue": "104",
"displayPayDate": "20220509",
"totalAmount": "9950",
"interest": "103.333",
"principalAmount": "2452.219"
},
{
"id": "AABILL222752DYB9",
"category": "Personal Quick",
"noOfDaysDue": "147",
"displayPayDate": "20220309",
"totalAmount": "500",
"interest": "437.685",
"principalAmount": "1849.265"
},
{
"id": "AABILL222752KD09",
"category": "Personal - Redu",
"noOfDaysDue": "16",
"displayPayDate": "20220909",
"totalAmount": "9950",
"interest": "849.471",
"principalAmount": "8094.014"
},
{
"id": "AABILL222752NHKQ",
"category": "Personal - Redu",
"noOfDaysDue": "126",
"displayPayDate": "20220409",
"totalAmount": "2286.95",
"interest": "537.333",
"principalAmount": "1749.617"
},
{
"id": "AABILL2227531PXP",
"category": "Personal - Redu",
"noOfDaysDue": "16",
"displayPayDate": "20220909",
"totalAmount": "8943.485",
"interest": "674.77",
"principalAmount": "8268.715"
},
{
"id": "AABILL222753HFB9",
"category": "Personal - Redu",
"noOfDaysDue": "126",
"displayPayDate": "20220409",
"totalAmount": "9950"
},
{
"id": "AABILL222753KRGR",
"category": "Personal - Redu",
"noOfDaysDue": "81",
"displayPayDate": "20220609",
"totalAmount": "8943.485",
"interest": "1029.02",
"principalAmount": "7914.465"
},
{
"id": "AABILL22275452WW",
"category": "Personal - Redu",
"noOfDaysDue": "10",
"displayPayDate": "20220918",
"totalAmount": "9950",
"interest": "1.036",
"principalAmount": "3.728"
},
{
"id": "AABILL222754RMR0",
"category": "Personal - Redu",
"noOfDaysDue": "104",
"displayPayDate": "20220509",
"totalAmount": "2286.95",
"interest": "520",
"principalAmount": "1766.95"
},
{
"id": "AABILL2227581J3W",
"category": "Personal Quick",
"noOfDaysDue": "7",
"displayPayDate": "20220921",
"totalAmount": "9950",
"interest": "60.902",
"principalAmount": "2494.65"
},
{
"id": "AABILL222758QHPZ",
"category": "Personal - Redu",
"noOfDaysDue": "104",
"displayPayDate": "20220509",
"totalAmount": "9950",
"interest": "1119.444",
"principalAmount": "7824.041"
},
{
"id": "AABILL222758ZC0M",
"category": "Personal - Redu",
"noOfDaysDue": "61",
"displayPayDate": "20220709",
"totalAmount": "9950",
"interest": "517.109",
"principalAmount": "1769.841"
},
{
"id": "AABILL222759126J",
"category": "Personal - Redu",
"noOfDaysDue": "97",
"displayPayDate": "20220518",
"totalAmount": "9950"
},
{
"id": "AABILL222759B1PJ",
"category": "Personal - Redu",
"noOfDaysDue": "2",
"displayPayDate": "20220928",
"totalAmount": "25",
"interest": "972.193",
"principalAmount": "89586.314"
},
{
"id": "AABILL222759YVCZ",
"category": "Personal Quick",
"noOfDaysDue": "38",
"displayPayDate": "20220809",
"totalAmount": "9950",
"interest": "83.641",
"principalAmount": "2471.911"
},
{
"id": "AABILL22275B1QHC",
"category": "Personal - Redu",
"noOfDaysDue": "54",
"displayPayDate": "20220718",
"totalAmount": "4.764",
"interest": "1.043",
"principalAmount": "3.721"
},
{
"id": "AABILL22275C02T2",
"category": "Personal - Redu",
"noOfDaysDue": "38",
"displayPayDate": "20220809",
"totalAmount": "9950",
"interest": "481.904",
"principalAmount": "1805.046"
},
{
"id": "AABILL22275C9T9K",
"category": "Personal - Redu",
"noOfDaysDue": "38",
"displayPayDate": "20220809",
"totalAmount": "8943.485",
"interest": "849.471",
"principalAmount": "8094.014"
},
{
"id": "AABILL22275CBLDQ",
"category": "Personal - Redu",
"noOfDaysDue": "104",
"displayPayDate": "20220509",
"totalAmount": "8943.485",
"interest": "1083.333",
"principalAmount": "7860.152"
},
{
"id": "AABILL22275CHJ65",
"category": "Personal - Redu",
"noOfDaysDue": "119",
"displayPayDate": "20220418",
"totalAmount": "500"
},
{
"id": "AABILL22275D200Q",
"category": "Personal - Redu",
"noOfDaysDue": "147",
"displayPayDate": "20220309",
"totalAmount": "500",
"interest": "674.77",
"principalAmount": "8268.715"
},
{
"id": "AABILL22275D6KSB",
"category": "Personal Quick",
"noOfDaysDue": "30",
"displayPayDate": "20220821",
"totalAmount": "9950",
"interest": "60.902",
"principalAmount": "2494.65"
},
{
"id": "AABILL22275DG62X",
"category": "Personal - Redu",
"noOfDaysDue": "81",
"displayPayDate": "20220609",
"totalAmount": "2286.95",
"interest": "517.109",
"principalAmount": "1769.841"
},
{
"id": "AABILL22275F4H6R",
"category": "Personal - Redu",
"noOfDaysDue": "10",
"displayPayDate": "20220918",
"totalAmount": "4.764",
"interest": "0.992",
"principalAmount": "3.772"
},
{
"id": "AABILL22275F5S5V",
"category": "Personal - Redu",
"noOfDaysDue": "61",
"displayPayDate": "20220709",
"totalAmount": "2286.95",
"interest": "481.904",
"principalAmount": "1805.046"
},
{
"id": "AABILL22275FG558",
"category": "Personal - Redu",
"noOfDaysDue": "61",
"displayPayDate": "20220709",
"totalAmount": "9950",
"interest": "1029.02",
"principalAmount": "7914.465"
},
{
"id": "AABILL22275FX1V3",
"category": "Personal Quick",
"noOfDaysDue": "126",
"displayPayDate": "20220409",
"totalAmount": "2555.552",
"interest": "103.333",
"principalAmount": "2452.219"
},
{
"id": "AABILL22275HLNN6",
"category": "Personal - Redu",
"noOfDaysDue": "38",
"displayPayDate": "20220809",
"totalAmount": "9950",
"interest": "913.421",
"principalAmount": "8030.064"
},
{
"id": "AABILL22275K7JR2",
"category": "Personal - Redu",
"noOfDaysDue": "97",
"displayPayDate": "20220518",
"totalAmount": "4.764",
"interest": "1.083",
"principalAmount": "3.681"
},
{
"id": "AABILL22275L33D6",
"category": "Personal Quick",
"noOfDaysDue": "51",
"displayPayDate": "20220721",
"totalAmount": "9950",
"interest": "60.902",
"principalAmount": "2494.65"
},
{
"id": "AABILL22275LLWLJ",
"category": "Personal Quick",
"noOfDaysDue": "61",
"displayPayDate": "20220709",
"totalAmount": "9950",
"interest": "94.614",
"principalAmount": "2460.938"
},
{
"id": "AABILL22275LPKP9",
"category": "Personal - Redu",
"noOfDaysDue": "81",
"displayPayDate": "20220609",
"totalAmount": "9950",
"interest": "1083.333",
"principalAmount": "7860.152"
},
{
"id": "AABILL22275M8BLZ",
"category": "Personal - Redu",
"noOfDaysDue": "38",
"displayPayDate": "20220809",
"totalAmount": "2286.95",
"interest": "476.851",
"principalAmount": "1810.099"
},
{
"id": "AABILL22275P7LQV",
"category": "Personal - Redu",
"noOfDaysDue": "61",
"displayPayDate": "20220709",
"totalAmount": "8943.485",
"interest": "913.421",
"principalAmount": "8030.064"
},
{
"id": "AABILL22275PQ4SY",
"category": "Personal - Redu",
"noOfDaysDue": "81",
"displayPayDate": "20220609",
"totalAmount": "9950",
"interest": "520",
"principalAmount": "1766.95"
},
{
"id": "AABILL22275QJBY0",
"category": "Personal Quick",
"noOfDaysDue": "38",
"displayPayDate": "20220809",
"totalAmount": "2555.552",
"interest": "77.403",
"principalAmount": "2478.149"
},
{
"id": "AABILL22275R0RT8",
"category": "Personal - Redu",
"noOfDaysDue": "126",
"displayPayDate": "20220409",
"totalAmount": "9950",
"interest": "674.77",
"principalAmount": "8268.715"
},
{
"id": "AABILL22275RDJD5",
"category": "Personal - Redu",
"noOfDaysDue": "104",
"displayPayDate": "20220509",
"totalAmount": "9950",
"interest": "537.333",
"principalAmount": "1749.617"
},
{
"id": "AABILL22275RL5VQ",
"category": "Personal - Redu",
"noOfDaysDue": "31",
"displayPayDate": "20220818",
"totalAmount": "4.764",
"interest": "1.036",
"principalAmount": "3.728"
},
{
"id": "AABILL22275SQ4FW",
"category": "Personal - Redu",
"noOfDaysDue": "54",
"displayPayDate": "20220718",
"totalAmount": "9950",
"interest": "1.118",
"principalAmount": "3.646"
},
{
"id": "AABILL22275V5JTY",
"category": "Personal - Redu",
"noOfDaysDue": "16",
"displayPayDate": "20220909",
"totalAmount": "9950",
"interest": "476.851",
"principalAmount": "1810.099"
},
{
"id": "AABILL22275VT7QD",
"category": "Personal - Redu",
"noOfDaysDue": "16",
"displayPayDate": "20220909",
"totalAmount": "2286.95",
"interest": "437.685",
"principalAmount": "1849.265"
},
{
"id": "AABILL22275X9TQP",
"category": "Personal Quick",
"noOfDaysDue": "81",
"displayPayDate": "20220609",
"totalAmount": "9950",
"interest": "100",
"principalAmount": "2455.552"
},
{
"id": "AABILL22275Y99F1",
"category": "Personal - Redu",
"noOfDaysDue": "126",
"displayPayDate": "20220409",
"totalAmount": "8943.485",
"interest": "1119.444",
"principalAmount": "7824.041"
},
{
"id": "AABILL22275YJHVD",
"category": "Personal Quick",
"noOfDaysDue": "126",
"displayPayDate": "20220409",
"totalAmount": "9950",
"interest": "437.685",
"principalAmount": "1849.265"
},
{
"id": "AABILL22275YN842",
"category": "Personal Quick",
"noOfDaysDue": "61",
"displayPayDate": "20220709",
"totalAmount": "2555.552",
"interest": "83.641",
"principalAmount": "2471.911"
},
{
"id": "AABILL22275YV4XK",
"category": "Personal - Redu",
"noOfDaysDue": "76",
"displayPayDate": "20220618",
"totalAmount": "4.764",
"interest": "1.118",
"principalAmount": "3.646"
},
{
"id": "AABILL22275YYXGR",
"category": "Personal Quick",
"noOfDaysDue": "16",
"displayPayDate": "20220909",
"totalAmount": "9950",
"interest": "77.403",
"principalAmount": "2478.149"
},
{
"id": "AABILL22275Z6R91",
"category": "Personal Quick",
"noOfDaysDue": "81",
"displayPayDate": "20220609",
"totalAmount": "2555.552",
"interest": "94.614",
"principalAmount": "2460.938"
}
]
}
}